:root {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  font-weight: 400;

  /* 证券投顾主题配色 */
  --primary-color: #0066cc;
  --primary-light: #4da6ff;
  --primary-dark: #004d99;
  --success-color: #00a86b;
  --danger-color: #ff4d4f;
  --warning-color: #faad14;
  --text-primary: #333333;
  --text-secondary: #666666;
  --text-muted: #999999;
  --bg-primary: #ffffff;
  --bg-secondary: #f5f7fa;
  --border-color: #e0e0e0;

  /* 上涨和下跌颜色 */
  --stock-up: #ff4d4f;
  --stock-down: #00a86b;
  
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  font-weight: 500;
  color: var(--primary-color);
  text-decoration: inherit;
}
a:hover {
  color: var(--primary-light);
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: var(--text-primary);
  background-color: var(--bg-secondary);
}

h1 {
  font-size: 2.2em;
  line-height: 1.1;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--primary-dark);
}

h2 {
  font-size: 1.8em;
  font-weight: 500;
  margin-bottom: 0.8rem;
  color: var(--text-primary);
}

h3 {
  font-size: 1.4em;
  font-weight: 500;
  margin-bottom: 0.6rem;
  color: var(--text-primary);
}

button {
  border-radius: 6px;
  border: 1px solid transparent;
  padding: 0.6em 1.2em;
  font-size: 1em;
  font-weight: 500;
  font-family: inherit;
  background-color: var(--primary-color);
  color: white;
  cursor: pointer;
  transition: all 0.25s;
}
button:hover {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
}
button:focus,
button:focus-visible {
  outline: 2px solid var(--primary-light);
  outline-offset: 2px;
}

.btn-secondary {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background-color: var(--bg-secondary);
  border-color: var(--primary-color);
}

.card {
  background: var(--bg-primary);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  padding: 1.5em;
  margin-bottom: 1.5rem;
}

#app {
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* 证券特有的样式类 */
.stock-up {
  color: var(--stock-up) !important;
}

.stock-down {
  color: var(--stock-down) !important;
}

.stock-neutral {
  color: var(--text-muted);
}

/* 风险提示样式 */
.risk-warning {
  border-left: 4px solid var(--warning-color);
  padding: 1rem;
  background-color: #fff7e6;
  color: var(--text-primary);
  font-size: 0.9rem;
  margin: 1rem 0;
  border-radius: 0 4px 4px 0;
}

/* 数据卡片样式 */
.data-card {
  background: var(--bg-primary);
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
  padding: 1.2rem;
  margin-bottom: 1rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

.data-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

/* 响应式设计 */
@media (max-width: 768px) {
  h1 {
    font-size: 1.8em;
  }
  
  h2 {
    font-size: 1.5em;
  }
  
  .card {
    padding: 1em;
  }
  
  .data-card {
    padding: 1rem;
  }
}

/* 滚动条美化 */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
  background: var(--text-muted);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-secondary);
}
